import request from '@/utils/request'

// 列表-全部
export const accountGetAll = (data) => {
  return request({
    url:'/acc_account/getAll',
    method:'post',
    data
  })
}

// 列表
export const accountPageList = (data) => {
  return request({
    url:'/acc_account/page-list',
    method:'post',
    data
  })
}

// 新增
export const accountAdd = (data) => {
  return request({
    url:'/acc_account/add',
    method:'post',
    data
  })
}

// 删除
export const accountDel = (id) => {
  return request({
    url:`/acc_account/delete/${id}`,
    method:'post'
  })
}

// 编辑
export const accountModify = (data) => {
  return request({
    url:'/acc_account/modify',
    method:'post',
    data
  })
}

// 新增收支明细
export const accAccountSaveDetails = (data) => {
  return request({
    url:'/acc_account/saveDetails',
    method:'post',
    data
  })
}

// 收支明细
export const accAccountGetDetails = (data) => {
  return request({
    url:'/acc_account/getDetails',
    method:'post',
    data
  })
}

// 新增预付
export const accAddPay = (data) => {
  return request({
    url:`/acc/addPay`,
    method:'post',
    data
  })
}

// 新增预收
export const accAddReceive = (data) => {
  return request({
    url:`/acc/addReceive`,
    method:'post',
    data
  })
}




